package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InventoryListMapper;
import com.ruoyi.system.domain.InventoryList;
import com.ruoyi.system.service.IInventoryListService;

/**
 * 库存清单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-20
 */
@Service
public class InventoryListServiceImpl implements IInventoryListService 
{
    @Autowired
    private InventoryListMapper inventoryListMapper;

    /**
     * 查询库存清单
     * 
     * @param id 库存清单主键
     * @return 库存清单
     */
    @Override
    public InventoryList selectInventoryListById(Long id)
    {
        return inventoryListMapper.selectInventoryListById(id);
    }

    /**
     * 查询库存清单列表
     * 
     * @param inventoryList 库存清单
     * @return 库存清单
     */
    @Override
    public List<InventoryList> selectInventoryListList(InventoryList inventoryList)
    {
        return inventoryListMapper.selectInventoryListList(inventoryList);
    }

    /**
     * 新增库存清单
     * 
     * @param inventoryList 库存清单
     * @return 结果
     */
    @Override
    public int insertInventoryList(InventoryList inventoryList)
    {
        return inventoryListMapper.insertInventoryList(inventoryList);
    }

    /**
     * 修改库存清单
     * 
     * @param inventoryList 库存清单
     * @return 结果
     */
    @Override
    public int updateInventoryList(InventoryList inventoryList)
    {
        return inventoryListMapper.updateInventoryList(inventoryList);
    }

    /**
     * 批量删除库存清单
     * 
     * @param ids 需要删除的库存清单主键
     * @return 结果
     */
    @Override
    public int deleteInventoryListByIds(Long[] ids)
    {
        return inventoryListMapper.deleteInventoryListByIds(ids);
    }

    /**
     * 删除库存清单信息
     * 
     * @param id 库存清单主键
     * @return 结果
     */
    @Override
    public int deleteInventoryListById(Long id)
    {
        return inventoryListMapper.deleteInventoryListById(id);
    }
}
